﻿@model IEnumerable<PraceDyplomowe2.Models.UserProfile>

@{
    ViewBag.Title = "Lista promotorów";
}

@section featured
{
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>@ViewBag.Title.</h1>
            </hgroup>
        </div>
    </section>
}

@using (Html.BeginForm("Found", "ProfilPromotora", FormMethod.Get))
{
    <input name="nazwisko" type="text" />
    <input type="submit" value="Szukaj" />
    <div id="przestrzen"></div>
}


<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Imie)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Nazwisko)
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Imie)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Nazwisko)
        </td>

        <td>
            @*@Html.ActionLink("Edytuj", "Edit", new { id = item.PromotorID }) |
            @Html.ActionLink("Usuń", "Delete", new { id = item.PromotorID })*@
            @Html.ActionLink("Detale", "DetailsPromotor", "Administracja", new { id = item.UserId }, null)  |
            @Html.ActionLink("Tematy prac", "Index", "Tematy", new { userId = item.UserId}, null)
        </td>
    </tr>
}

</table>
